<template>
  <div class="job-results">
    <div class="job-results-title">就业成果展示</div>
    <div class="job-results-body">
       <table class="job-results-table" style="table-layout:fixed;">
           <tr class="results-table-title">
               <td class="name">姓名</td>
               <td class="school">学校</td>
               <td class="college">学院</td>
               <td class="company">就职公司</td>
               <td class="job">岗位</td>
               <td class="price">年薪</td>
           </tr>
           <tr class="results-table-title-position">
               <td class="name">姓名</td>
               <td class="school">学校</td>
               <td class="college">学院</td>
               <td class="company">就职公司</td>
               <td class="job">岗位</td>
               <td class="price">年薪</td>
           </tr>
           <tbody>
               <tr v-for="(item,key) in resultsData" :key="'resultsData'+key">
                    <td>{{item.sname.slice(0,1)}}
                        <span>**</span>    
                    </td>
                    <td>{{item.school}}</td>
                    <td>{{item.profetion}}</td>
                    <td>{{item.company}}</td>
                    <td>{{item.job}}</td>
                    <td>{{item.sal}}</td>
                </tr>
           </tbody>
           
       </table>
    </div>
  </div>
</template>

<script>
import {collegeResults} from '@/api/getData'
export default {
  name: 'job_results',
  data () {
      return{
        resultsData: []
      }
    
  },
  mounted(){
    collegeResults.call(this, 1).then(res=>{
        this.resultsData = res;
    })
  },
  components: {
   
  }
}
</script>

<style lang="stylus" scoped>
.job-results{
  background:rgba(255,255,255,1);
  box-shadow:0px 1px 2px 0px rgba(0,0,0,0.1);
  margin-bottom: 20px;  
  position: relative;
}
.job-results-title{
  box-sizing: border-box;
  font-size:16px;
  color:rgba(30,30,30,1);
  padding-left: 30px;
  line-height:58px;
  border-bottom: 1px solid rgba(238,238,238,1);
}
.job-results-body{
    padding: 40px 30px;
    padding-top: 0;
    height: 396px;
    width: 1200px;
    overflow: auto;
}
.job-results-table{
    width: 930px;
    height: 100px;
    margin: 0 auto;
    td{
        word-break: keep-all;
        padding-top: 30px;
        padding-bottom: 30px;
        box-sizing: border-box;
        font-size:14px;
        font-family:MicrosoftYaHei;
        color:rgba(30,30,30,1);
        line-height:14px;
        text-align: center;
        text-overflow: ellipsis; 
        vertical-align: middle;
    }
    .results-table-title{
        td{
            color:rgba(130,130,130,1);
        }
    }
    span{
        position: relative;
        top: 2px;
    }
}
.results-table-title-position{
    position: absolute;
    top: 59px;
    background: #fff;
    z-index: 100;
}
.name{
    width:144px;
    height:74px; 
    overflow hidden    
}
.school{
    width:144px;
    height:74px;
    overflow hidden    
}
.college{
    width:260px;
    height:74px;
    overflow hidden  
}
.company{
    width:200px;
    height:74px;
    overflow hidden
}
.job{
    width:260px;
    height:74px;
    overflow hidden    
}
.price{
    width:132px;
    height:74px;
    overflow hidden
}
</style>
